Radar Host Communication library  2020.08.13
EndpointRadarBaseBoard.h
Go to the documentation of this file.
1 
9 /* ===========================================================================
10  * Copyright (C) 2017-2021 Infineon Technologies AG
11  * All rights reserved.
12  * ===========================================================================
13  *
14  * ===========================================================================
15  * This document contains proprietary information of Infineon Technologies AG.
16  * Passing on and copying of this document, and communication of its contents
17  * is not permitted without Infineon's prior written authorisation.
18  * ===========================================================================
19  */
20 
21 #ifndef ENDPOINTRADARBASEBOARD_H_INCLUDED
22 #define ENDPOINTRADARBASEBOARD_H_INCLUDED
23 
24 /*
25 ==============================================================================
26  1. INCLUDE FILES
27 ==============================================================================
28 */
29 #include <stddef.h> /* for size_t */
30 #include <stdint.h>
32 
33 /* Enable C linkage if header is included in C++ files */
34 #ifdef __cplusplus
35 extern "C"
36 {
37 #endif /* __cplusplus */
38 
49 typedef struct {
53 
54 
55 typedef struct {
56  void *pData; // currently the is nothing special to the data
58 
59 
60 typedef struct {
61  int8_t index; // the index marks the position, within the list of "consumptions" (see fmcw_para_value_def_host_t.pp_consumption_labels)
62  float value; // the value of the consumption
63  char *p_unit; // the unit string of the consumption
65 
66 
67 typedef struct {
68  size_t elements;
71 
72 
73 typedef struct {
74  void *pData;
76 
77 typedef struct {
78  uint8_t major_version;
79  uint8_t minor_version;
81  char *description;
83 
84 
85 typedef struct {
86  void *pData;
88 
89 typedef struct {
90  void* temp;
92 
93 
94 typedef struct {
95  void *pData;
97 
98 typedef struct {
99  void* temp;
101 
102 
103 typedef struct {
104  void *pData;
106 
107 
108 /*
109 ==============================================================================
110  5. FUNCTION PROTOTYPES AND INLINE FUNCTIONS
111 ==============================================================================
112 */
113 
131 int32_t ep_radar_base_board_is_compatible_endpoint(int32_t protocol_handle,
132  uint8_t endpoint);
133 
134 
153 typedef void(*consumption_def_cnf_callback_t)(consumption_def_cnf_ctx_t *p_context, int32_t protocol_handle,
154  uint8_t endpoint, consumption_def_host_t *p_data);
155 
156 typedef void(*consumption_cnf_callback_t)(consumption_cnf_ctx_t *p_context, int32_t protocol_handle,
157  uint8_t endpoint, consumption_cnf_t *p_data);
158 
159 typedef void(*board_info_cnf_callback_t)(board_info_cnf_ctx_t *p_context, int32_t protocol_handle,
160  uint8_t endpoint, board_info_cnf_t *p_data);
161 
162 typedef void(*para_store_cnf_callback_t)(para_store_cnf_ctx_t *p_context, int32_t protocol_handle,
163  uint8_t endpoint, para_store_cnf_t *p_data);
164 
165 typedef void(*para_factory_reset_cnf_callback_t)(para_factory_reset_cnf_ctx_t *p_context, int32_t protocol_handle,
166  uint8_t endpoint, para_factory_reset_t *p_data);
181 int32_t ep_radar_base_board_consumption_def_req(int32_t protocol_handle, uint8_t endpoint);
182 
184  consumption_def_cnf_ctx_t *p_context);
185 
186 int32_t ep_radar_base_board_consumption_req(int32_t protocol_handle, uint8_t endpoint, uint32_t repeat_count);
187 
189  consumption_cnf_ctx_t *p_context);
190 
191 int32_t ep_radar_base_board_para_factory_reset_req(int32_t protocol_handle, uint8_t endpoint);
192 
194  para_factory_reset_cnf_ctx_t *p_context);
195 
196 int32_t ep_radar_base_board_para_store_req(int32_t protocol_handle, uint8_t endpoint);
197 
199  para_store_cnf_ctx_t *p_context);
200 
201 int32_t ep_radar_base_board_board_info_req(int32_t protocol_handle, uint8_t endpoint);
202 
204  board_info_cnf_ctx_t *p_context);
205 
208 /* --- Close open blocks -------------------------------------------------- */
209 
210 /* Disable C linkage for C++ files */
211 #ifdef __cplusplus
212 } /* extern "C" */
213 #endif /* __cplusplus */
214 
215 /* End of include guard */
216 #endif /* ENDPOINTRADARINDUSTRIAL_H_INCLUDED */
217 
218 /* --- End of File -------------------------------------------------------- */
void ep_radar_base_board_consumption_def_cb(consumption_def_cnf_callback_t callback, consumption_def_cnf_ctx_t *p_context)
int32_t ep_radar_base_board_para_store_req(int32_t protocol_handle, uint8_t endpoint)
void ep_radar_base_board_para_store_cb(para_store_cnf_callback_t callback, para_store_cnf_ctx_t *p_context)
void ep_radar_base_board_board_info_cb(board_info_cnf_callback_t callback, board_info_cnf_ctx_t *p_context)
This file defines the status codes of the radar endpoints.
void ep_radar_base_board_para_factory_reset_cb(para_factory_reset_cnf_callback_t callback, para_factory_reset_cnf_ctx_t *p_context)
void(* board_info_cnf_callback_t)(board_info_cnf_ctx_t *p_context, int32_t protocol_handle, uint8_t endpoint, board_info_cnf_t *p_data)
int32_t ep_radar_base_board_is_compatible_endpoint(int32_t protocol_handle, uint8_t endpoint)
This function checks if an endpoint in a device is a Radar Baseboard endpoint.
void(* para_store_cnf_callback_t)(para_store_cnf_ctx_t *p_context, int32_t protocol_handle, uint8_t endpoint, para_store_cnf_t *p_data)
int32_t ep_radar_base_board_consumption_req(int32_t protocol_handle, uint8_t endpoint, uint32_t repeat_count)
consumption_t * p_consumption
void ep_radar_base_board_consumption_cb(consumption_cnf_callback_t callback, consumption_cnf_ctx_t *p_context)
int32_t ep_radar_base_board_board_info_req(int32_t protocol_handle, uint8_t endpoint)
void(* consumption_def_cnf_callback_t)(consumption_def_cnf_ctx_t *p_context, int32_t protocol_handle, uint8_t endpoint, consumption_def_host_t *p_data)
This is the callback type executed on a parameter value confirmation event, triggered,...
void(* consumption_cnf_callback_t)(consumption_cnf_ctx_t *p_context, int32_t protocol_handle, uint8_t endpoint, consumption_cnf_t *p_data)
int32_t ep_radar_base_board_consumption_def_req(int32_t protocol_handle, uint8_t endpoint)
This function is used to request the parameter values,.
int32_t ep_radar_base_board_para_factory_reset_req(int32_t protocol_handle, uint8_t endpoint)
void(* para_factory_reset_cnf_callback_t)(para_factory_reset_cnf_ctx_t *p_context, int32_t protocol_handle, uint8_t endpoint, para_factory_reset_t *p_data)